import request from '@/utils/request'

// 查询推荐结果列表
export function listRecommendations(query) {
  return request({
    url: '/recommendations/recommendations/list',
    method: 'get',
    params: query
  })
}

// 查询推荐结果详细
export function getRecommendations(recId) {
  return request({
    url: '/recommendations/recommendations/' + recId,
    method: 'get'
  })
}

// 新增推荐结果
export function addRecommendations(data) {
  return request({
    url: '/recommendations/recommendations',
    method: 'post',
    data: data
  })
}

// 修改推荐结果
export function updateRecommendations(data) {
  return request({
    url: '/recommendations/recommendations',
    method: 'put',
    data: data
  })
}

// 删除推荐结果
export function delRecommendations(recId) {
  return request({
    url: '/recommendations/recommendations/' + recId,
    method: 'delete'
  })
}
